xen/arm: smmuv3: Fix l1 stream table size in the error message
authorZenghui Yu <yuzenghui@huawei.com>
Mon, 22 Aug 2022 15:19:01 +0000 (16:19 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Sep 2022 16:42:59 +0000 (17:42 +0100)
commitb0cec9d37f264017e83c11177abf2aa96a5260a1
tree5ca751101e095c8bb9f857a2219610ca1553d6f2
parent0b5034946f03f63e2c59255ae2fd9c18c9a20ec1
xen/arm: smmuv3: Fix l1 stream table size in the error message

Backport Linux commit dc898eb84b25. This is the clean backport without
any changes.

The actual size of level-1 stream table is l1size. This looks like an
oversight on commit d2e88e7c081ef ("iommu/arm-smmu: Fix LOG2SIZE setting
for 2-level stream tables") which forgot to update the @size in error
message as well.

As memory allocation failure is already bad enough, nothing worse would
happen. But let's be careful.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20200826141758.341-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dc898eb84b25
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/passthrough/arm/smmu-v3.c